# !/usr/bin/python3

class Complex:
    def __init__(self, realpart, imagpart):
        self.r = realpart
        self.i = imagpart

x = Complex(3.0, -4.5)
print(x.r, x.i)  # 输出结果：3.0 -4.5



class Test:
    def prt(self):
        """self不是关键字"""
        print(self)
        print(self.__class__)


t = Test()
t.prt()